package com.jinjiametalserver.service.impl;

import com.jinjiametalserver.entity.EmployeeEntity;
import com.jinjiametalserver.mapper.EmployeeMapper;
import com.jinjiametalserver.service.EmployeeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    private final EmployeeMapper employeeMapper;

    public EmployeeServiceImpl(EmployeeMapper employeeMapper) {
        this.employeeMapper = employeeMapper;
    }

    @Override
    public List<EmployeeEntity> getAllEmployees() {
        return employeeMapper.selectList(null);
    }
}
